package geticsen.markdown.render.render;

import geticsen.markdown.render.element.MarkdownDocument;
import geticsen.markdown.render.element.base.HtmlRender;
import geticsen.markdown.render.element.base.Paragraph;

import java.util.List;
import java.util.stream.Collectors;

public class SimpleMarkdownRender implements MarkdownRender {

    @Override
    public String toHtml(List<Paragraph> paragraphs) {
        return paragraphs.stream().map(HtmlRender::toHtml).collect(Collectors.joining("\n"));
    }

    @Override
    public String toHtml(MarkdownDocument document) {
        return null;
    }
}